package com.tju.resource.model;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * 工序与工序组关联表
 */
@Data
public class TbProcessDep {
    /**
     * 关联id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 工序id
     */
    private Long processId;

    /**
     * 工序组id
     */
    private Long groupId;

    /**
     * 编号
     */
    private Integer control;

    /**
     * 创建者
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新者
     */
    private String updateBy;

    /**
     * 更新时间
     */
    private Date updateTime;

    /*工序实体*/
    @TableField(exist = false)
    private TbProcess process;


    public TbProcessDep() {
    }

    public TbProcessDep(Long processId, Long groupId, Integer control) {
        this.processId = processId;
        this.groupId = groupId;
        this.control = control;
    }
}